const express = require('express')
const cors = require('cors')

const app = express()

app.use(cors())

const router = express.Router()

app.use(router)

router.get('/', async (req, res) => {
  res.end("ok")
})

app.listen(3001, () => {
  console.log('后端接口服务已启动-->', 'http://localhost:3001')
})